import * as TYPES from "../../Action/contactInfo/index.js";

const initData = {
	contactInfo: {}
};

const contactReducer = (state = initData, { type, data }) => {
	switch (type) {
		case TYPES.SET_CONTACT_LIST:
			return {
				...state,
				contactInfo: data
			};
		default:
			return state;
	}
};

export default contactReducer;
